log4j.rootLogger=INFO, console,file

# console
log4j.logger.console=debug, console
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%-5p [%C] %m%n
#log4j.appender.console.layout.ConversionPattern=%-5p [%C][%L] %m%n

# file
#webapp.root
log4j.logger.file=INFO, file
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=${catalina.home}/../log/tyms.log
log4j.appender.file.MaxFileSize=20MB
# Keep three backup files.
log4j.appender.file.MaxBackupIndex=10
# Pattern to output: date priority [category] - message
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d %p [%c] - %m%n


log4j.logger.org.hibernate.SQL=info
log4j.logger.org.hibernate.type=info

